<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
		<script type="text/javascript" src="js/jquery-2.1.0.js"></script>
		<script type="text/javascript">
			$(function(){
				$.ajax({
					type:"post",
					url:"getAllOfficial",
					dataType:"json",
					success:function(d){
						console.log(d);
						var om = $("#official_msg");
						om.empty();
						om.append("<div id=\"gfxx\">官方消息</div>");
						for(var i = 0;i<d.list.length;i++){
							if(d.list[i].getter == 0){
								om.append("<div class=\"gf_content\"><div class=\"to_all\"><div class=\"to_all_title\">官方通知</div><div class=\"to_user_time\">"+d.list[i].create_time.split(".")[0]+"</div></div><div class=\"msg_content\">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+d.list[i].message+"</div></div>");
							}else{
								om.append("<div class=\"gf_content\"><div class=\"to_user\"><div class=\"to_user_title\">&nbsp&nbsp&nbsp&nbsp亲爱的用户您好</div><div class=\"to_user_time\">"+d.list[i].create_time.split(".")[0]+"</div></div><div class=\"msg_content\">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+d.list[i].message+"</div></div>");
							}
						}
					}
				});
			})
		</script>
	</head>
	
	<body>
		<div id="container2">
			<div id="official_msg">
				<div id="gfxx">
					官方消息
				</div>
				<div class="gf_content">
					<div class="to_all">
						官方通知
					</div>
					<div class="msg_content">
						&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp现在办理会员打8折nlsdnf;lndnd lkn  lnvl knsd'pfjoasihj ;xncvxnz;xdho waihwfonlvnd lkn  lnvl knsd'pfjoasihj ;xncvxnz;xdho waihwfonlv lkn  lnvl knsd'pfjoasihj ;xncvxnz;xdho waihwfonlvnk l
					</div>
				</div>
				<div class="gf_content">
					<div class="to_user">
						&nbsp&nbsp&nbsp&nbsp亲爱的用户您好
					</div>
					<div class="msg_content">
						&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp现在办理会员打8折nlsdnf;lndnd lkn  lnvl knsd'pfjoasihj ;xncvxnz;xdho waihwfonlvnd lkn  lnvl knsd'pfjoasihj ;xncvxnz;xdho waihwfonlv lkn  lnvl knsd'pfjoasihj ;xncvxnz;xdho waihwfonlvnk l
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
